package com.en.effectiveJava.chapter2.Builder2;

/**
 * {@link NutritionFacts} 的测试类
 * <p>
 * Create by EN
 * On 24/05/18 1:00 PM
 */
public class NutritionFactsTest {

    public static void main(String[] args) {
        NutritionFacts cocaColas = new NutritionFacts.Builder(240, 8).
                calories(100).fat(35).sodium(10).carbohydrate(600).build();
        System.out.printf("cocaColas的营养成分是:%s \n", cocaColas);
    }

}
